package cate.game.pvp.throne.data.ko;


import cate.common.table.d.GDThrone;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

import java.util.ArrayList;
import java.util.List;


@NoteClass("王座争霸淘汰赛-冠军战数据")
public class TBKoChampion {

	@NoteField("冠军战的对阵匹配数据")
	public TBKoMatch match;

	public void initialize() {
		if (match == null) {
			match = new TBKoMatch();
		}
		match.initialize();
	}

	public void clear() {
		match = new TBKoMatch();
		match.initialize();
	}

	public TBKoMatch findMatch(){
		return match;
	}


	public List<TBKoReport> findRoleReports(String roleUid) {
		List<TBKoReport> results = new ArrayList<>();
		if (match.containRole(roleUid)) {
			results.add(TBKoReport.of(GDThrone.KO_CHAMPION_ROUND, match));
		}
		return results;
	}
}
